﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using GlobalTracker.WebSite.Core;

namespace GlobalTracker.WebSite.AreaRestrita
{
  public partial class Main : System.Web.UI.MasterPage
  {
    protected void Page_Load(object sender, EventArgs e)
    {
      // Verifica se está autenticado.
      Security sec = new Security();
      sec.IsAuthenticated(Page);

      // Atualiza label de Usuário.
      if (Session["Login"] != null)
        LabelUserName.Text = Session["Login"].ToString();

    }
  }
}